﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using SpeedPOS.Seguridad;

namespace DesktopSpeedPOS
{
    public partial class FormLogin : Form
    {
        public FormLogin()
        {
            InitializeComponent();
        }

        private void btCancelar_Click (Object sender, EventArgs e)
        {
            this.Close();
        }

        private void btIngresar_Click(Object sender, EventArgs e)
        {
            SpeedPOS.Seguridad.Membership MembershipApp = new Membership();
            if (MembershipApp.Autenticacion(txtUsuario.Text, txtClave.Text) == true)
            {
                this.Close();
            }
            else
            {
                MessageBox.Show(this, "Verifique los Datos ingresador, Usuario y Clave es invalido", "Alerta", MessageBoxButtons.OK);
            }
        }
    }
}
